package com.xyp.sso.service;

import org.apache.shiro.session.Session;

import com.alibaba.dubbo.config.annotation.Service;
import com.xyp.sso.dubbo.util.UserUtils;
import com.xyp.sso.testinterfaces.SSODubboInterface;

@Service(interfaceClass = SSODubboInterface.class)
public class DoubleTestService implements SSODubboInterface {

    @Override
    public String testDubboShiro() {
        System.out.println("ok");

        Session session = UserUtils.getSession();
        System.out.println(session.getId());
        System.out.println(UserUtils.getUser());
        return "ok";
    }

}
